/**
 * ===========================================
 * Project: gamehistory-service
 * ===========================================
 * Package: com.cyou.gamehistory.repository
 * 
 * Copyright (c) 2012, CYOU All Rights Reserved.
 * ===========================================
 */
package com.cyou.gamehistory.repository;

import java.util.List;
import java.util.Map;

import com.cyou.framework.mybatis.MyBatisRepository;
import com.cyou.framework.pagination.proxy.PaginationSupport;
import com.cyou.gamehistory.entity.GameHistoryFeed;

/**
 * <p>GameHistoryFeedDao</p>
 *
 * @since 1.0
 * @version 1.0 2012-12-11
 * @author zhangxingkai
 */
@MyBatisRepository
public interface GameHistoryFeedDao {

	/**
	 * 保存GameHistoryFeed
	 */
	void saveGameHistoryFeed(GameHistoryFeed gameHistoryFeed);

	/**
	 * 分页查询GameHistoryFeed
	 * 
	 * @return 该页数据
	 */
	List<GameHistoryFeed> findAllFeeds(Map<String, Object> map);

	/**
	 * 分页查询GameHistoryFeed
	 * 
	 * @return 分页信息及该页数据
	 */
	PaginationSupport<GameHistoryFeed> findAllFeeds2(Map<String, Object> map);

	/**
	 * 获取最新的记录
	 */
	List<GameHistoryFeed> getLastestFeeds(int limit);
	
	Integer getMonthUserCount(Map<String,Integer> map);
	
	Integer getMonthUserTimes(Map<String,Integer> map);

}
